package pprg.core;

/**
 * Enumeration for directions for the neighors of a cell in a {@link World}.
 * Each direction knows steps to go in x and y direction.
 * 
 * @author Daniel Heily, Michael Hinterleitner.
 *
 */
public enum Direction {

	NW(-1, -1), //
	NORTH(0, -1), //
	NE(1, -1), //
	EAST(-1, 0), //
	WEST(1, 0), //
	SW(-1, 1), //
	SOUTH(0, 1), //
	SE(1, 1);

	final int dx;
	final int dy;

	Direction(int dx, int dy) {
		this.dx = dx;
		this.dy = dy;
	}
}
